var rootFontSize
var setRem = () => {
  const baseSize = 10
  const scale = document.documentElement.clientWidth / 1920
  rootFontSize = baseSize * scale
  document.documentElement.style.fontSize = rootFontSize + 'px'
}
setRem()
window.onresize = () => {
  setRem()
}